<#import "/lib/layout.ftl" as l>
<#import "/spring.ftl" as spring>

<@l.header title="my_account.title">
</@l.header>
<@l.body>
	<@l.section title="my_account.title" description="my_account.description">
		<form method="POST">
			<@l.errorsFrame />
			<@spring.formHiddenInput "cmd.id"/>
			<@l.input field="cmd.login" label="my_account.login" other="readonly" other="style='width: 155px;'"/><br/>
			<@l.input field="cmd.password" label="my_account.password" type="password" other="style='width: 155px;'"/><br/>
			<@l.input field="cmd.repeatedPassword" label="my_account.repeated_password" type="password" other="style='width: 155px;'"/><br/><br/>
			<@l.input field="cmd.name" label="my_account.name" other="style='width: 155px;'"/><br/>
			<@l.input field="cmd.surename" label="my_account.surename" other="style='width: 155px;'"/><br/>
			<@l.input field="cmd.personalNumber" label="my_account.personal_number" other="style='width: 155px;'"/><br/>
			<@l.input field="cmd.street" label="my_account.street"other="style='width: 155px;'"/><br/>
			<@l.input field="cmd.flatNumber" label="my_account.flat_number" other="style='width: 155px;'"/><br/>
			<#if !cmd.isUser>
				<@l.input field="cmd.telephoneNumber" label="my_account.telephone_number" other="style='width: 155px;'"/><br/>
			</#if>
			<@l.combobox field="cmd.city" label="my_account.city" options=miejscowosci 
				resourceMsgs=true other="style='width: 155px;'"/><br/>
			<@l.input field="cmd.zip" label="my_account.zip" other="style='width: 155px;'"/><br/>
			<div style="text-align:center"><@l.button name="btnZapisz" value="my_account.zapisz"/></div>
		</form>
	</@l.section>
</@l.body>